package com.jie.practice;

import java.util.Arrays;

public class ca {
    public static void main(String[] args) {
        int []arrar =new int[100];
        for (int i = 0; i < arrar.length ; i++) {
            arrar[i]=i+1;
        }
        System.out.println("原数组为："+Arrays.toString(arrar));
        System.out.print("其中偶数为：");
        for (int i = 0; i < arrar.length ; i++) {
            if (arrar[i]%2==0){
                System.out.print(arrar[i]+"\t");
            }
        }
    }
}
